package com.sqj.factoryPattern.factoryMethodPattern;

import com.sqj.factoryPattern.simpleFactoryPattern.ICourse;

public class Test {
    public static void main(String[] args) {
        ICourseFactory javaCourseFactory=new JavaCourseFactory();
        ICourse javaCourse = javaCourseFactory.create();
        javaCourse.record();

        PythonCourseFactory pythonCourseFactory = new PythonCourseFactory();
        ICourse pythonCourse = pythonCourseFactory.create();
        pythonCourse.record();

    }
}
